package cn.itsource.basic.constant;

public class WechatConstant {
/*
     https://open.weixin.qq.com/connect/qrconnect?appid=wxbdc5610cc59c1631
     &redirect_uri=https%3A%2F%2Fpassport.yhd.com%2Fwechat%2Fcallback.do&response_type=code
     &scope=snsapi_login&state=3d6be0a4035d839573b04816624a415e#wechat_redirect
     APPID   wxd853562a0548a7d0
     SECRET  4a5d5615f93f24bdba2ba8534642dbb6
     */
    //获取授权码的路径
    public static final String CODE_URL = "https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect";

    public static final String APPID = "wxd853562a0548a7d0";

    public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

    //扫码成功之后，重定向此域名
    public static final String REDIRECT_URI = "http://bugtracker.itsource.cn/wechat/callback";

    //token对应的url地址
    public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    //获取微信用户资源url地址
    public static final String USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";


}
